<%@ page language="java" contentType="text/html; charset=GB18030"
    pageEncoding="GB18030"%>
<%@ page import="java.util.List" %>
<%@ page import="javax.jdo.PersistenceManager" %>
<%@ page import="com.wenjie.shoprankmonitor.Key_monitor_list" %>
<%@ page import="com.wenjie.shoprankmonitor.PMF" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GB18030">
<title>Show Keys</title>
</head>
<body>
<%
PersistenceManager pm = PMF.get().getPersistenceManager();
String query = "select from " + Key_monitor_list.class.getName();
List<Key_monitor_list> keys = (List<Key_monitor_list>) pm.newQuery(query).execute();
for(Key_monitor_list k : keys) {
	%><p><%=k.getKey_name()%>, <%=k.getMonitor_time() %>, <%=k.getUser().getNickname()%> </p><%
}
%><p><%=keys.size()%></p><%
pm.close();
%>
</body>
</html>